package com.example.houqin_oa.controller;

import com.example.comment_oa.response.AjaxResponse;
import com.example.houqin_oa.service.CodenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:类别
 * @Author:陈旭良
 * @Documents_And_Settings:liang
 * @Date:2022-11-22 15:11
 * @Entry_Name:my_springcloud_project01cangku
 */
@RestController
@CrossOrigin
@RequestMapping("/houqinOa")
public class CodenController {

    @Autowired
    CodenService codenService;

    @PostMapping("/code/AllCode")
    public AjaxResponse AllCode(){
        return AjaxResponse.success(codenService.AllCode());
    }
}
